<?php

class Quad_Form_Element_Label extends Quad_Html_Element {
	
	protected $_element;
	
	public function __construct($element, $labelText) {
		parent::__construct('label');
		$this->addDecorator('SpanLabel');
		$this->addClassName('q-form-label');
		$this->_element = $element;
		$this->nodeValue = $labelText;
	}
	
	public function getElement() {
		return $this->_element;
	}
	
}

